package org.kzwl.book.controller.web;


import org.kzwl.comm.pojo.ResponseData;
import org.kzwl.entity.web.Town;
import org.kzwl.service.web.TownService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/town")
public class TownController {

    @Resource
    TownService townService;

    @PostMapping("/queryList")
    public ResponseData<List<Town>> queryList() {
        return townService.queryList();
    }
}
